/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2022-09-30 14:27:39
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-10-28 16:01:40
 */
import request from "../axios";
const component = {
  add(url, params) {
    return request({
      url: url + "component/add",
      method: "post",
      data: params
    })
  },
  getList(url, params) {
    return request({
      url: url + "component/getList",
      method: "post",
      data: params
    })
  },
  edit(url, params) {
    return request({
      url: url + "component/edit",
      method: "post",
      data: params
    })
  },
  delete(url, params) {
    return request({
      url: url + "component/delete",
      method: "get",
      params: params
      // data: params
    })
  },
}
export default component;